package com.sam4cloud.oauth2.project.model.vo;

import com.sam4cloud.common.core.model.supers.Convert;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Author: Sam
 * @Date: 2022-11-30 16:17
 * @Description: 认证凭证
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "AuthTokenVO对象", description = "认证凭证")
public class AccessTokenVO extends Convert {

    @ApiModelProperty(value = "登录凭证", example = "xxxx")
    private String accessToken;

    @ApiModelProperty(value = "刷新凭证", example = "xxxx")
    private String refreshToken;

    @ApiModelProperty(value = "有效期", example = "xxxx")
    private Long expiresIn;

    @ApiModelProperty(value = "用户信息", example = "xxxx")
    private String userInfo;

}
